package com.dataset.manager.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 存储配置类，用于映射application.yml中的dataset.storage配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "dataset.storage")
public class StorageConfig {
    
    /**
     * 存储类型，支持local和s3
     */
    private String storageType = "local";
    
    /**
     * 本地存储路径
     */
    private String localPath = "./data_output";
    
    /**
     * S3配置（预留）
     */
    private S3Config s3 = new S3Config();
    
    @Data
    public static class S3Config {
        private String bucketName;
        private String accessKey;
        private String secretKey;
        private String region;
    }
}